package com.bosssoft.user.permission.center.serve.pojo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel("查看多个角色的资源 请求实体类")
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class RoleResourceCheckDTO {


        @NotNull
        @ApiModelProperty("角色ids")
        @JsonSerialize(using= ToStringSerializer.class)
        private  List<Long> roleIds;

        @NotNull
        @ApiModelProperty("租户id")
        @JsonSerialize(using= ToStringSerializer.class)
        private Long tenantId;

}
